import dva, { connect } from "dva";
const app = dva();
app.model({
  namespace: "home", //明明空间
  state: { number: 0 },
  reducers: {
    add(state) {
      return { number: state.number + 1 };
    },
  },
});
app.model({
  namespace: "counter", //明明空间
  state: { number: 0 },
  reducers: {
    add(state) {
      return { number: state.number + 1 };
    },
  },
});
